import {
    HomeOutlined,
    FileOutlined,
    EditOutlined,
    ProjectOutlined,
    BookOutlined,
    AppstoreOutlined,
    UserOutlined,
} from '@ant-design/icons';

export interface BreadcrumbRoute {
    path: string;
    breadcrumbName: string;
    icon?: any;
    children?: BreadcrumbRoute[];
}

export const routes: BreadcrumbRoute[] = [
    {
        path: '/',
        breadcrumbName: '首页',
        icon: HomeOutlined
    },
    {
        path: '/articles',
        breadcrumbName: '文章',
        icon: FileOutlined,
        children: [
            {
                path: '/articles/new',
                breadcrumbName: '发布文章',
                icon: EditOutlined
            },
            {
                path: '/articles/:id',
                breadcrumbName: '文章详情'
            },
            {
                path: '/articles/edit/:id',
                breadcrumbName: '编辑文章'
            }
        ]
    },
    {
        path: '/project-structure',
        breadcrumbName: '项目结构',
        icon: ProjectOutlined
    },
    {
        path: '/knowledge-map',
        breadcrumbName: '知识地图',
        icon: BookOutlined
    },
    {
        path: '/examples',
        breadcrumbName: '功能示例',
        icon: AppstoreOutlined
    },
    {
        path: '/profile',
        breadcrumbName: '个人中心',
        icon: UserOutlined
    }
]; 